package edu.umassd.raddacl;

/**
 * A tuple is a set of attributes that represent one observation in a
 * {@link DataSet data set}.
 * 
 * @author Dan Avila
 * 
 */
public interface Observation extends Iterable<Double>
{
	/**
	 * Get the value of a particular attribute in this tuple.
	 * 
	 * @param attribute
	 *            - the index of the attribute in this tuple.
	 * @return the value of the specified attribute in this tuple.
	 */
	Double get(int attribute);

	/**
	 * The number of attributes in this tuple.
	 * 
	 * @return the number of attributes in this tuple.
	 */
	int size();
}
